<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--品版审核</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<%@ include file="/comm.jsp"%>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}
-->
</style>
	<body>
		<s:form name="formpage" action="brand_manage" namespace="/">
			<div align="center">
				<%@ include file="/messages.jsp"%>
				<fieldset>
					<legend>
						查询条件
					</legend>
					<table align="center" width="700" border="0">
						<tr>
							<td class="td_title">
								品牌名称：
							</td>
							<td>
								<input id="brandName" name="brandDto.brandName"
									value="${brandDto.brandName}" maxlength="20" size="30"
									type="text" />
							</td>
							<td>
							<td>
								审核标识：
								<select name="brandDto.checkflag" id="checkflag"
									style="width: 100px">
									<option value="-1">
										
									</option>
									<option value="0">
										待审核
									</option>
									<option value="1">
										审核通过
									</option>
									<option value="2">
										审核不通过
									</option>
								</select>
							</td>
							<td>

								<input type="submit" class="button" id="ok" name="ok"
									value=" 查 询 " />
							</td>
						</tr>
					</table>
				</fieldset>
			</div>
			<table align="center" width="100%" class="tb_datalist">
				<tr class="tr_title">
					<th class="title">
						品牌名称
					</th>
					<th class="title">
						品牌证书
					</th>
					<th class="title">
						状态
					</th>
					<th>
						操作
					</th>
				</tr>
				<s:iterator value="#request.brands" id="ca">
					<tr>
						<td>
							<s:property value="#ca.brandName" />
						</td>
						<td>
							<a
								href="<%=request.getContextPath()%>/upload/seal/<s:property value="#ca.image"/>"
								title="查看证书" target="_blank"> <img
									src="<%=request.getContextPath()%>/images/imgTip.gif" /> </a>
						</td>
						<td>
							<s:if test="0==#ca.checkflag">
														待审核
													</s:if>
							<s:elseif test="1==#ca.checkflag">
														审核通过
													</s:elseif>
							<s:elseif test="2==#ca.checkflag">
														审核不通过
													</s:elseif>
						</td>
						<td>
							<s:if test="1==#request.currentUser.userRole ">
								<!-- 系统管理员 -->
								<a
									href="<s:url action="brand_editPage"><s:param name="id"><s:property value="#ca.id"/></s:param></s:url>">
									审核通过 </a>
							</s:if>
							<s:if test="1==#request.currentUser.userRole">
								<a
									href="<s:url action="brand_delete"><s:param name="id"><s:property value="#ca.id"/></s:param></s:url>"
									onclick="return window.confirm('你确定要删除吗?');"> 审核不通过 </a>
							</s:if>
						</td>
					</tr>
				</s:iterator>
				<s:property value="#request.allowpage" escape="false" />
			</table>
		</s:form>
	</body>
</html>
